import { MockMethod } from 'vite-plugin-mock'

const blogMock: MockMethod[] = [
  {
    url: '/blog-service/blog/stats',
    method: 'get',
    response: () => {
      return {
        blogCount: 10,
        categoryCount: 3
      }
    }
  },
  {
    url: '/blog-service/blog/latest',
    method: 'get',
    response: () => {
      return [{
        id: 591259203186757,
        title: '一篇标题很长的博客嘿嘿嘿哦哦哦哦哦哦哦'
      },
      {
        id: 591837462601797,
        title: '锵锵锵'
      },
      {
        id: 591137032622149,
        title: '台风'
      },
      {
        id: 591317392101445,
        title: '一篇新的2336'
      },
      {
        id: 591317151170629,
        title: '新的一篇文章233500'
      }]
    }
  },
  {
    url: '/blog-service/blog/category',
    method: 'get',
    response: () => {
      return [{
        count: 7,
        name: '学习'
      },
      {
        count: 3,
        name: '工作'
      }]
    }
  },
  {
    url: '/blog-service/blog/page',
    method: 'get',
    response: () => {
      return {
        current: 1,
        pages: 2,
        records: [
          {
            category: '学习',
            content: null,
            createTime: '2024-09-18 10:52:50',
            id: 591837462601797,
            isGreat: true,
            readDuration: 1.27,
            summary: '那半弯新月悬挂于空，洒落一地的晶莹。\n\n夜已被月洗白，月下，匆匆的步履停顿，凝望，清点心中如帛的情丝。\n月透着初秋的韵致，想念已悄然坠临，无语凝噎的痛楚在心间扩散，丰盈的思念在秋夜沉迷，抒这夜的情愁，',
            title: '锵锵锵',
            topValue: 3,
            updateTime: '2024-09-18 10:57:20',
            visitCount: 19,
            wordCount: 761
          },
          {
            category: '学习',
            content: null,
            createTime: '2024-09-16 11:22:47',
            id: 591837462601797,
            isGreat: true,
            readDuration: 1.27,
            summary: '# 台风12312321312312',
            title: '锵锵锵',
            topValue: 3,
            updateTime: '2024-09-17 00:16:31',
            visitCount: 19,
            wordCount: 761
          },
          {
            category: '学习',
            content: null,
            createTime: '2024-09-18 10:52:50',
            id: 591837462601797,
            isGreat: true,
            readDuration: 1.27,
            summary: '那半弯新月悬挂于空，洒落一地的晶莹。\n\n夜已被月洗白，月下，匆匆的步履停顿，凝望，清点心中如帛的情丝。\n月透着初秋的韵致，想念已悄然坠临，无语凝噎的痛楚在心间扩散，丰盈的思念在秋夜沉迷，抒这夜的情愁，',
            title: '锵锵锵',
            topValue: 3,
            updateTime: '2024-09-18 10:57:20',
            visitCount: 19,
            wordCount: 761
          },
          {
            category: '学习',
            content: null,
            createTime: '2024-09-18 10:52:50',
            id: 591837462601797,
            isGreat: true,
            readDuration: 1.27,
            summary: '那半弯新月悬挂于空，洒落一地的晶莹。\n\n夜已被月洗白，月下，匆匆的步履停顿，凝望，清点心中如帛的情丝。\n月透着初秋的韵致，想念已悄然坠临，无语凝噎的痛楚在心间扩散，丰盈的思念在秋夜沉迷，抒这夜的情愁，',
            title: '锵锵锵',
            topValue: 3,
            updateTime: '2024-09-18 10:57:20',
            visitCount: 19,
            wordCount: 761
          },
          {
            category: '学习',
            content: null,
            createTime: '2024-09-18 10:52:50',
            id: 591837462601797,
            isGreat: true,
            readDuration: 1.27,
            summary: '那半弯新月悬挂于空，洒落一地的晶莹。\n\n夜已被月洗白，月下，匆匆的步履停顿，凝望，清点心中如帛的情丝。\n月透着初秋的韵致，想念已悄然坠临，无语凝噎的痛楚在心间扩散，丰盈的思念在秋夜沉迷，抒这夜的情愁，',
            title: '锵锵锵',
            topValue: 3,
            updateTime: '2024-09-18 10:57:20',
            visitCount: 19,
            wordCount: 761
          }
        ],
        size: 5,
        total: 10
      }
    }
  },
  {
    url: '/blog-service/blog/content/591837462601797',
    method: 'get',
    response: () => {
      return {
        category: '学习',
        content: '# 台风12312321312312',
        createTime: '2024-09-16 11:22:47',
        id: 591137032622149,
        isGreat: true,
        readDuration: 0.03,
        summary: '# 台风12312321312312',
        title: '台风',
        topValue: 3,
        updateTime: '2024-09-17 00:16:31',
        visitCount: 1,
        wordCount: 17
      }
    }
  }]

export default blogMock
